﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WorkView.aspx.cs" Inherits="WorkRecord.WorkView" %>

<%@ Import Namespace="WorkRecord.CommonClass" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>工作信息</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script src="/Static/js/jquery-1.11.1.min.js"></script>
    <link href="/Static/css/style.css" rel="stylesheet" type="text/css" />
    <script src="/Static/js/PopWindow.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        <br />
        <div class="center" style="width: 90%;">
            <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tabline">
                <tr>
                    <td colspan="7" align="center">
                        <table style="width: 100%">
                            <tr>
                                <td align="left" width="15%">
                                    <img src="/Static/img/logo.gif" style="height: 38px" />
                                    <asp:DropDownList ID="ddlJourneyCategory" runat="server" AutoPostBack="True"
                                        OnSelectedIndexChanged="ddlJourneyCategory_SelectedIndexChanged">
                                    </asp:DropDownList>
                                </td>
                                <td align="center" style="height: 38px">
                                    <h2>名家集团工作日记</h2>
                                </td>
                                <td width="20%" align="right" style="height: 38px">
                                    <asp:HyperLink ID="hlCurrMonthMajorWork" runat="server" Text="修改本月重点工作" NavigateUrl="/WorkMajorEnter.aspx"></asp:HyperLink>&nbsp;<asp:HyperLink ID="hl" runat="server" Text="录入今日工作日记"></asp:HyperLink><br />
                                    <asp:HyperLink ID="hlAdmin" runat="server" Visible="false" Text="后台管理"></asp:HyperLink>&nbsp;&nbsp;&nbsp;
                                    <%=WebContext.Current.CurrentUser.Rows[0]["realname"].ToString()+"，已登录|" %>
                                    <asp:HyperLink ID="hlLoginout" NavigateUrl="/Login.aspx" runat="server" Text="退出"></asp:HyperLink>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>

                <tr>
                    <td colspan="2" class="tdcolor" align="center">本月重点工作<br />
                        （5项以内）
                    </td>
                    <td colspan="5" class="tdcolor">
                        <div class="divRemark" runat="server" id="div_FileValue" style="font-weight:800;font-size:16px"></div>
                    </td>
                </tr>
                <tr>
                    <td width="5%" class="tdcolor" align="center">序号</td>
                    <td width="5%" class="tdcolor" align="center">姓名
                    </td>
                    <td width="10%" class="tdcolor" align="center">所在区域
                    </td>
                    <td width="40%" class="tdcolor" align="center">
                        <div style="float: left; cursor: pointer;">
                            <asp:LinkButton runat="server" ID="imgbtn_left" Text="前一天" OnClick="imgbtn_left_Click1"></asp:LinkButton>
                            <%--<asp:ImageButton ID="imgbtn_left" runat="server" ImageUrl="/Static/img/left.png" OnClick="imgbtn_left_Click" />--%>
                        </div>
                        <div style="float: left; width: 80%" id="div_rq">
                            <asp:Label ID="lb_today" runat="server" Text=""></asp:Label><asp:HiddenField ID="hf_current_day"
                                runat="server" />
                        </div>
                        <div style="float: right; cursor: pointer;">
                            <asp:LinkButton runat="server" ID="imgbtn_right" Text="后一天" OnClick="imgbtn_right_Click1"></asp:LinkButton>
                            <%--<asp:ImageButton ID="imgbtn_right" runat="server" ImageUrl="/Static/img/right.png" OnClick="imgbtn_right_Click" />--%>
                        </div>
                    </td>
                    <td width="20%" class="tdcolor" align="center">领导重要提示
                    </td>
                    <td width="10%" class="tdcolor" align="center">最后保存时间
                    </td>
                    <td width="10%" align="center" class="tdcolor">下一个工作日
                    </td>
                </tr>
                <asp:Repeater ID="rptJourneys" runat="server" OnItemCommand="rptJourneys_ItemCommand" OnItemDataBound="rptJourneys_ItemDataBound">
                    <ItemTemplate>
                        <tr>
                            <td class="tdcolor" align="center"><%#Container.ItemIndex+1 %></td>
                            <td class="tdcolor" align="center" width="10%" >
                                
                                <input type="hidden" id="txt<%#Eval("username") %>" value='<%#GetMajorWork(Eval("username").ToString()) %>' />
                                <a href="javascript:void(0);"  onmouseenter="ShowMemo(this,'<%#Eval("username") %>');"><%#Eval("realname") %></a>
                                
                                
                            </td>
                            <td class="tdcolor" align="center" width="10%">
                                <%#GetCategory(Eval("username").ToString()) %>
                            </td>
                            <td>
                                <table width="100%" cellpadding="0" cellspacing="0" border="0">
                                    <tr>
                                        <td width="15%">
                                            <%#GetCities(Eval("Guid").ToString(),1) %>
                                        </td>
                                        <td style="display:block;word-wrap:break-word;word-break:break-all">
                                            <%#GetContents(Eval("Guid").ToString()) %>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td width="20%">
                                <%#GetComments(Eval("Guid").ToString()) %>
                                <asp:HiddenField ID="hfGuid" runat="server" Value='<%#Eval("Guid").ToString() %>' />
                                <asp:HiddenField ID="hfSubmitTime" runat="server" Value='<%#Eval("SubmitTime").ToString() %>' />
                                <asp:HiddenField ID="hfCanComment" runat="server" Value='<%#Eval("canComment").ToString() %>' />
                                <br />
                                <asp:TextBox ID="txtComment" runat="server" TextMode="MultiLine"></asp:TextBox>
                                <asp:Button ID="btnSave" runat="server" Text="提交" CommandName="save" />
                            </td>
                            <td width="10%" align="center">
                                <%--<%#GetLastModifyTime(Eval("Guid").ToString(),Eval("SubmitTime").ToString()) %>--%>
                                <%#Eval("SubmitTime") %>
                            </td>
                            <td width="10%">
                                <%#GetCities(Eval("Guid").ToString(),0) %>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </table>
        </div>
        <br />
        <div class="boxabs" id="MajorWorkBox" onmouseleave="CloseMemo();" onmouseenter="this.style.display='block';">
</div>
    </form>
</body>
</html>
